cd38b35e74732b8f363aeaa465d8822532dd0336,clustering/web/infinispan/src/main/java/org/wildfly/clustering/web/infinispan/session/fine/FineSessionAttributes.java,FineSessionAttributes,getAttribute,#String#,83

Before Change


        if (attribute != null) {
            // If the object is mutable, we need to indicate that the attribute should be replicated
            if (MutableDetector.isMutable(attribute)) {
                if (this.mutations != null) {
                    this.mutations.put(key, value);
                } else {
                    new CacheEntryMutator<>(this.cache, key, value).mutate();
                }

After Change


        if (attribute != null) {
            // If the object is mutable, we need to indicate that the attribute should be replicated
            if (MutableDetector.isMutable(attribute)) {
                Mutator mutator = this.mutations.computeIfAbsent(name, k -> new CacheEntryMutator<>(this.cache, key, value));
                // If cache is not transactional, mutate on close instead.
                if (this.properties.isTransactional()) {
                    mutator.mutate();